import java.util.LinkedList;

import data.Sommet;



public class History {
public int[][] sommets= new int[100][16];
public LinkedList<int[]> queue=new LinkedList<int[]>();
public LinkedList<int[]> liste=new LinkedList<int[]>();

public History(){
	for (int i=0;i<100;i=i+1){
		queue.addFirst(sommets[i]);
	}
}
public void add(Sommet s){
	int[] t=queue.poll();
	for (int i=0;i<16;i=i+1){
		t[i]=s.sommet[i];
	}
	liste.addFirst(t);
}
public void remove(){
	queue.add(liste.removeFirst());
}
}
